package com.voute.Model.Impl;

import com.voute.Api.PersonInfoService;
import com.voute.Model.Bean.BaseBean;
import com.voute.Model.Bean.PersonInfoBean;
import com.voute.Model.Bean.SimplePushMessageBean;
import com.voute.Model.IPersonInfoModel;
import com.voute.Utils.ServiceFactory;

import rx.Observable;

/**
 * 获取自己个人信息的接口
 * Created by liucxu on 2017/1/20.
 */

public class IPersonInfoModelImpl implements IPersonInfoModel {
    @Override
    public Observable<PersonInfoBean> getMyInfo() {
        return ServiceFactory.GetInstance().createService(PersonInfoService.class).getMyInfo();
    }

    @Override
    public Observable<PersonInfoBean> getOtherUserInfo(String uid) {
        return ServiceFactory.GetInstance().createService(PersonInfoService.class).getOtherUserInfo(uid);
    }

    @Override
    public Observable<SimplePushMessageBean> refreshPushMsg() {
        return ServiceFactory.GetInstance().createService(PersonInfoService.class).refreshPushMsg();
    }

    @Override
    public Observable<BaseBean> exitLoginStatus() {
        return ServiceFactory.GetInstance().createService(PersonInfoService.class).exitLoginStatus();
    }
}
